package exam.model.dao;

import java.util.List;


public interface MethodDaoBase<T> {
	/**
	 * selectList
	 * @param query
	 * @return List
	 */
	public List<T> selectList(String query);
	
	/**
	 * selectObject
	 * @param query
	 * @return T
	 */
	public T selectByPk(long id);

	/**
	 * delete
	 * @param id
	 */
	public void delete(long id);
	
	/**
	 * insert
	 * @param entity
	 */
	public void insert(T entity);
	
	/**
	 * update
	 * @param entity
	 */
	public void update(T entity);
}